<?php

namespace App\Msg;

class MsgCode {
	
	// 公用
	const OPERAT_FAIL = 90001;
	const MESSAGE_TO_FRIEND_SUCCESS = 90002;
	const MESSAGE_PASS_SUCCESS = 90003;
	const MESSAGE_ADD_REFEND_SUCCESS = 90004;
	const MESSAGE_TO_WORLD_SUCCESS = 90005;
	const ONLINE_MESSAGE_ACTION = 90006;
	const OUTLINE_MESSAGE_ACTION = 90007;
	const SEND_MSG_NULL = 90008;
	const ONLINE_NUM_MSG = 90009;
	// 用户
	const USER_EXIST = 10001;
	const ACCOUNT_IS_NULL = 10002;
	const USER_NOT_EXIST = 10003;
	const USER_PASSWORD_ERROR = 10004;
	const TOKEN_IS_NULL = 10005;
	const USER_NOT_LOGIN = 10006;
	const CHAT_OPEN_SUCCESS = 10007;
	const GET_USER_SUCCESS = 10008;
	const PHONE_FORMAT_ERROR = 10009;
	const EMAIL_FORMAT_ERROR = 10010;
	const PASSWORD_LENGTH_ERROR = 10011;
	const PASSWORD_IS_NULL = 10012;
	const USER_IS_LOGIN = 10013;
	
	// 好友
	const FRIENDUID_IS_NYLL = 20001;
	const FROEND_NOT_EXIST = 20002;
	const FRIEND_DB_ERROR = 20003;
	const ADD_FRIEND_LOG_EXIST = 20004;
	const NOT_REPEAT_ADD_FRIEND = 20005;
	const FRIEND_KEY_NULL = 20006;
	const FRIEND_STATUS_NULL = 20007;
	const FRIEND_NOT_ONLINE = 20008;
	const NOT_FRIEND = 20009;
	const NOT_ADD_SELF_FRIEND = 20010;
	// 消息
	const ADD_MESSAGE_DB_ERROR = 30001;
}